package com.xqboss.apps.controller.system;

import com.xqboss.apps.domain.sys.SysRechargeAmountConfig;
import com.xqboss.apps.dto.user.WalletRechargeDto;
import com.xqboss.apps.service.sys.SysRechargeAmountConfigService;
import com.xqboss.common.core.controller.BaseController;
import com.xqboss.common.core.domain.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author Trent
 * @date 2023/8/22
 */

@Api(tags = {"系统-充值配置"})
@Slf4j
@RestController
@RequestMapping("/config/recharge")
public class RechargeConfigController extends BaseController {

    @Autowired
    private SysRechargeAmountConfigService rechargeAmountConfigService;

    /**
     * 获取充值列表
     *
     * @return
     */
    @ApiOperation("获取充值列表")
    @PostMapping("list")
    public R<List<SysRechargeAmountConfig>> rechargeList() {
        List<SysRechargeAmountConfig> list = rechargeAmountConfigService.list();
        return R.ok(list);
    }

}
